<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>06京东顶部导航条</title>
    <link rel="stylesheet" href="./resource/reset.css">
    <style>
        .top {
            width: 1221px;
            height: 30px;
            background-color: rgb(227, 228, 229);
            position: relative;
            font-size: 12px;
            color: #999;
        }

        .location {
            width: 30px;
            line-height: 30px;
            position: absolute;
            left: 155px;
        }
        .location:hover{
            color: red;
        }

        .right{
            position: absolute;
            right: 133px;
        }

        .right>div,a{
            float: left;
        }
        .right>div:hover{
            color: red;
        }
        .right>a:hover{
            color: red;
        }
        .right>div>a:hover{
            color: red;
        }

        .right>div>a:first-child{
            margin-right: 9px;
        }

        .right>.in-text,a{
            margin-right: 30px;
            line-height: 30px;
            text-decoration: none;
            color: #999;
        }

        .right>div>a:nth-child(2){
            color: red;
        }

        .right>a:nth-child(5){
            color: red;
        }
        

    </style>
</head>

<body>
    <div class="top">
        <div class="location">
            河北
        </div>
        <div class="right">
            <div>
                <a href="#">你好，请登录</a>
                <a href="#">免费注册</a>
            </div>
            <a href="#">我的订单</a>
            <a href="#">我的京东</a>
            <a href="#">京东会员</a>
            <a href="#">企业采购</a>
            <div class="in-text">商家服务</div>
            <div class="in-text">网站导航</div>
            <div class="in-text">手机京东</div>
            <a href="#">网站无障碍</a>
        </div>
    </div>
</body>

</html>